package com.xtq.springcloud.controller;

import com.sun.xml.internal.ws.api.model.MEP;
import com.xtq.springcloud.entity.Member;
import com.xtq.springcloud.entity.Result;
import com.xtq.springcloud.service.IMemberFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: xietianqi
 * @create: 2024-01-25 17:09
 * @description: controller
 **/
@RestController
public class MemberConsumerFeignController {
	@Resource
	private IMemberFeignService memberFeignService;
	
	@GetMapping("/member/consumer/openfeign/get/{id}")
	public Result<Member> getMemberById(@PathVariable ("id") Long id){
		return memberFeignService.getMemberById(id);
	}
}
